﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace BaiTap1
{
    class Program
    {
        static void Main(string[] args)
        {
            /*BieuThuc bt1 = new BieuThucTong(new BieuThucDon(2, 2), new BieuThucDon(5));
            BieuThuc bt2 = new BieuThucTong(new BieuThucDon(3, 7), new BieuThucDon(-1));
            BieuThuc bt = new BieuThucTich(bt1, bt2);

            double kq = bt.TinhGiaTri(6);
            string daoHam = bt.TinhDaoHam();
            Console.Out.WriteLine(kq);
            Console.Out.WriteLine(daoHam);*/
            
            BieuThuc.XuLyCach1();
            //BieuThuc.XuLyCach2("test.txt", "result.txt");

            //BieuThuc bt = BieuThuc.ConvertFromString("(2x^2 + 5) * (7x^3 - 1)");            

            /*BieuThucDon bt1 = BieuThucDon.Convert("12");
            BieuThucDon bt2 = BieuThucDon.Convert("12x");
            BieuThucDon bt3 = BieuThucDon.Convert("2x^5");
            BieuThucDon bt4 = BieuThucDon.Convert("x^12");

            Console.WriteLine(bt1.ToString());
            Console.WriteLine(bt2.ToString());
            Console.WriteLine(bt3.ToString());
            Console.WriteLine(bt4.ToString());*/

        }
    }
}
